home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / StickyClick 2.0 ƒ / StickyClick 1.2 ƒ / Patches.h next >
Encoding:
C/C++ Source or Header  |  1992-05-19  |  1.3 KB  |  60 lines  |  [TEXT/KAHL]

  1.  
  2. /******************************************************************************************/
  3.  
  4. class PostEventPatch : public GenericPatch {
  5. public:
  6.     PostEventPatch(void);
  7.     void Behavior(void);
  8. };
  9.  
  10. /******************************************************************************************/
  11.  
  12. class ButtonPatch : public GenericPatch {
  13. public:
  14.     ButtonPatch(void);
  15.     void Behavior(void);
  16. };
  17.  
  18. typedef struct {
  19.     short    itsResult;
  20. } ButtonPatchParms;
  21.  
  22. /******************************************************************************************/
  23.  
  24. #if 1
  25. class PopupMenuSelectPatch : public GenericPatch {
  26. public:
  27.     PopupMenuSelectPatch(void);
  28.     virtual void Behavior(void);
  29. };
  30.  
  31. typedef struct {
  32.     short            itsItem;
  33.     short            itsLeft;
  34.     short            itsTop;
  35.     MenuHandle        itsMenuHandle;
  36.     unsigned long    itsResult;
  37. } PopupMenuSelectParameters;
  38.  
  39. typedef struct PopupMenuSelectParameters ;
  40. typedef pascal long (*PopupMenuSelectProcPtr) (MenuHandle theMenu, short top, short left, short item);
  41.  
  42. #endif
  43.  
  44. /******************************************************************************************/
  45.  
  46. class MenuSelectPatch : public GenericPatch {
  47. public:
  48.     MenuSelectPatch();
  49.     virtual void Behavior(void);
  50. };
  51.  
  52. struct MenuSelectParameters {
  53.     Point itsStartPt;
  54.     long itsResult;
  55. };
  56.  
  57. typedef struct MenuSelectParameters MenuSelectParameters;
  58.  
  59. typedef pascal long (*MenuSelectProcPtr) (Point pt);
  60.